//
//  PlayInfoModel.m
//  项目
//
//  Created by 杨世博 on 14-12-30.
//  Copyright (c) 2014年 张诗雨. All rights reserved.
//

#import "PlayInfoModel.h"

@implementation PlayInfoModel
- (void)dealloc
{
    [super dealloc];
    [_title release];
    [_imgUrl release];
    [_musicUrl release];
    [_tingid release];
    
}
- (instancetype)initWithTitle:(NSString *)title imgUrl:(NSString *)imgUrl musicUrl:(NSString *)musicUrl tingid:(NSString *)tingid userinfo:(NSDictionary *)userinfo authorinfo:(NSDictionary *)authorinfo
{
    self = [super init];
    if (self) {
        self.userinfo = [NSDictionary dictionary];
        self.authorinfo = [NSDictionary dictionary];
        self.title = title;
        self.imgUrl = imgUrl;
        self.musicUrl = musicUrl;
        self.tingid = tingid;
        self.userinfo = userinfo;
        self.authorinfo = authorinfo;
    }
    return self;
    
}
+ (instancetype)playInfoModelTitle:(NSString *)title imgUrl:(NSString *)imgUrl musicUrl:(NSString *)musicUrl tingid:(NSString *)tingid userinfo:(NSDictionary *)userinfo authorinfo:(NSDictionary *)authorinfo
{
    PlayInfoModel *model = [[PlayInfoModel alloc] initWithTitle:title imgUrl:imgUrl musicUrl:musicUrl tingid:tingid userinfo:userinfo authorinfo:authorinfo];
    return model;
    
}
- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}
- (id)valueForUndefinedKey:(NSString *)key
{
    return @"";
}
@end
